package com.cmwa.solution.business.product.service;

import java.io.IOException;
import java.util.List;

import javax.servlet.http.HttpServletResponse;

import com.cmwa.solution.base.entity.Page;
import com.cmwa.solution.base.entity.SearchParam;
import com.cmwa.solution.business.product.entity.SubPrdLineVo;
/**
 * 招商财富产品表业务接口层
 * 
 * @author ex-zhengqq
 * @date 2019-01-22 15:33:47
 */
public interface SubPrdLineService {
	public void insertPrdInfo(SubPrdLineVo subPrdLineVo);
	
	public void physicDeletePrdInfoById(String id);
	
	public void updatePrdInfoById(SubPrdLineVo subPrdLineVo);
	
	public SubPrdLineVo getPrdInfoByCode(String subPrdCode);
	
	public Page<SubPrdLineVo> prdInfoListPage(SearchParam sp);
	
	/**
	 * 根据产品名称模糊查询产品信息
	 * @param prdsname
	 * @return
	 */
	public List<SubPrdLineVo> queryPrdInfoList(String prdsname);

	/**
	 * 导出
	 * @param response
	 * @param sp
	 */
	public void export(HttpServletResponse response, SearchParam sp) throws IOException;

	/**
	 * 保存附件
	 * @param SubPrdLineVo
	 * @param string
	 */
	public void updateAttachRel(SubPrdLineVo subPrdLineVo, String string);

	public List<SubPrdLineVo> getSellWellPrd(int size);
	
	/**
	 * 新增
	 * @param subPrdLineVo
	 * @param attIds
	 */
	public void savePrdInfo(SubPrdLineVo subPrdLineVo, String attIds);

	/**
	 * 删除
	 * @param subPrdCode
	 */
	public void deletePrdLineByCode(String subPrdCode);

	/**
	 * 修改
	 * @param prdInfoVo
	 * @param attIds
	 */
	public void updatePrdInfo(SubPrdLineVo prdInfoVo, String attIds);

	/**
	 * 校验是否重复
	 * @param subPrdCode
	 * @param subFundSname
	 * @return
	 */
	public boolean isRepeat(String subPrdCode, String subFundSname);

	/**
	 * 下拉框查询
	 * @param sp
	 * @return
	 */
	public List<SubPrdLineVo> prdLineInfo(SearchParam sp);
}
